// 分10行打印1~100,每行10个
#include <stdio.h>

int main(int argc, char *argv[])
{
    char n = 1;
    while(n <= 100){
        printf("%4d", n);
        if(n % 10 == 0)
            printf("\n");
        n++;
    }

    return 0;
}

/* 问题一：打印九九乘法表
1x1=1 1x2=2 1x3=3 1x4=4 1x5=5 1x6=6 1x7=7 1x8=8 1x9=9
2x1=1 2x2=4 2x3=6 2x4=8 2x5=10 2x6=12 2x7=14 2x8=16 2x9=18
...
*/

/* 问题二：斜式打印九九乘法表
1x1=1 1x2=2 1x3=3 1x4=4 1x5=5 1x6=6 1x7=7 1x8=8 1x9=9
      2x2=4 2x3=6 2x4=8 2x5=10 2x6=12 2x7=14 2x8=16 2x9=18
            3x3=9 3x4=12 3x5=15 3x6=18 3x7=21 3x8=24 3x9=27
...
                                                     9x9=81
*/